package cloud.demo.eureka;

import java.util.List;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

import cloud.demo.eureka.model.Product;

@FeignClient(name = "simple-service")
public interface ProductService {

	@RequestMapping("/products")
	List<Product> all();

	@RequestMapping("/products/info")
	String info();
}
